<?php
class PoUrlHelper extends AppHelper {
    function getBaseURL() {
		//build base url
		$baseURL = '/';
		$baseURL .= $this->params['controller'];
		$baseURL .= '/';
		if($this->params['action'] != 'index') :
			$baseURL .= $this->params['action'];
		endif;
		if(!empty($this->params['pass'])) :
			foreach($this->params['pass'] as $passed) :
				$baseURL .= '/';		
				$baseURL .= $passed;
			endforeach;
		endif;
		
		return $baseURL;
    }
}
?>